package com.mimaxueyuan.disruptor.demo5;

/**
 * To get started with the Disruptor we are going to consider very simple and contrived example, 
 * one that will pass a single long value from a producer to a consumer, 
 * where the consumer will simply print out the value. 
 * Firstly we will define the Event that will carry the data.
 *
 * @author: Kevin
 * @官网: 	www.mimaxueyuan.com
 * @Q Q群:	660567408
 * @Email:	mimaxueyuan@163.com
 * [每天进步一点点、人生带来大改变...]
 * [本代码对应视频地址:http://study.163.com/course/introduction/1004573050.htm]
 */
public class LongEvent {
	
	private long value;
	
	public void set(long value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "LongEvent [value=" + value + "]";
	}
}
